package core.util;

import java.util.HashMap;

public class PageEntity<T> {
	private Integer rowstotalcount;
	private Page<T> page;
	private HashMap<String, Object> exParam;

	public Page<T> getPage() {
		return page;
	}

	public void setPage(Page<T> page) {
		this.page = page;
	}

	public HashMap<String, Object> getExParam() {
		return exParam;
	}

	public void setExParam(HashMap<String, Object> exParam) {
		this.exParam = exParam;
	}

	public void useAutoPaging() {
		if (page == null) {
			page = new Page<>();
		}
		if (exParam == null) {
			exParam = new HashMap<String, Object>();
		}
	}

	public Integer getRowstotalcount() {
		return rowstotalcount;
	}

	public void setRowstotalcount(Integer rowstotalcount) {
		this.rowstotalcount = rowstotalcount;
	}
}
